WooCommerce\PayPalCommerce\Button\Assets\SmartButton D

Total Complexity 231
Dependencies 24
Dependents 0
Total lines 1,327
Lines of code 801
Logical lines of code 304
Comment lines 351
Methods 37
Properties 18

Methods 37

Method Rating Maintainability Complexity Lines of code
message_values()
C
35 28 82
url()
C
38 26 57
render_wrapper()
B
35 19 97
render_button_wrapper_registrar()
B
42 18 56
localize_script()
B
33 12 107
load_button_component()
A
49 15 36
enqueue()
A
48 11 36
render_message_wrapper_registrar()
A
45 10 50
button_renderer()
S
57 7 17
context()
S
58 7 16
style_for_context()
S
54 6 20
dcc_is_enabled()
S
57 6 19
message_renderer()
S
61 6 13
components()
S
59 5 16
can_render_dcc()
S
74 5 4
can_save_vault_token()
S
66 5 9
get_vaulted_paypal_email()
S
60 4 13
has_subscriptions()
S
63 4 12
is_paypal_continuation()
S
63 4 11
dcc_renderer()
S
58 3 16
product_supports_payment()
S
61 3 12
has_in_stock_variation()
S
68 3 8
payerData()
S
68 3 7
normalize_height()
S
68 3 9
get_3ds_contingency()
S
67 3 9
__construct()
S
55 1 19
is_cart_price_total_zero()
S
78 2 3
bn_code_for_context()
S
74 2 4
get_payment_tokens()
S
71 2 6
checkout_button_renderer_hook()
S
79 1 3
checkout_dcc_button_renderer_hook()
S
79 1 3
pay_order_renderer_hook()
S
79 1 3
proceed_to_checkout_button_renderer_hook()
S
72 1 6
mini_cart_button_renderer_hook()
S
72 1 6
single_product_renderer_hook()
S
79 1 3
attributes()
S
74 1 5
bn_codes()
S
68 1 8